package com.sdgakj.enums;

public enum EnumJpushTag {
	
	ANDROID("1", "android"), IOS("2", "ios"), BOTH("3", "两者");

	private String code;
	private String name;

	private EnumJpushTag(String code, String name) {
		this.code = code;
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static EnumJpushTag getEnum(String value) {
		for (EnumJpushTag e : EnumJpushTag.values()) {
			if (value.equals(e.getCode())) {
				return e;
			}
		}
		return null;
	}
}
